/*
 * @Author: 
 * @Date: 2022-02-17 14:03:10
 * @LastEditors: lqj
 * @LastEditTime: 2022-02-25 09:54:28
 * @Description: 请填写简介
 */
import { nanoid } from 'nanoid'

import Hello from '../page/Hello/index.jsx'
import About from '../page/About'
import TodoList from '../page/TodoList'
import GetData from '../page/GetData'
import Calculate from '../page/Calculate'
import Count from '../page/Count'
import Container from '../page/Decorator'
import ContainerCount from '../page/Count/Container'
import Person from '../page/Person/index.jsx'
import ContentPage from '../page/ContextDemo/index.jsx'
import Rocket from '../views/Rocket/index.jsx'
import Slide from '../views/Slide/index.jsx'
import Area from '../page/Area/index.jsx'

import LayOut from '../Layout'
import ErrorPage from '../page/ErrorPage/404'

export const routeList = [
  {
    id: nanoid(),
    path: '/',
    name: 'Hello',
    component: Hello,
    exact: true,
    isRoute: false,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/about',
    name: 'About',
    component: About,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/todoList',
    name: 'TodoList',
    component: TodoList,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/getData',
    name: 'GetData',
    component: GetData,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/calculate',
    name: 'Calculate',
    component: Calculate,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/count',
    name: 'Count',
    component: Count,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/containerCount',
    name: 'ContainerCount',
    component: ContainerCount,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/container',
    name: 'Container',
    component: Container,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/person',
    name: 'Person',
    component: Person,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/contentPage',
    name: 'ContentPage',
    component: ContentPage,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/rocket',
    name: 'Rocket',
    component: Rocket,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/slide',
    name: 'Slide',
    component: Slide,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/area',
    name: 'area',
    component: Area,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '/layOut',
    name: 'LayOut',
    component: LayOut,
    exact: false,
    isRoute: true,
    isLink: true
  },
  {
    id: nanoid(),
    path: '*',
    name: 'ErrorPage',
    component: ErrorPage,
    exact: false,
    isRoute: false,
    isLink: false
  },
]